﻿using System.Windows;
using GalaSoft.MvvmLight.Messaging;

namespace Sample.ItemsControl
{
  /// <summary>
  /// Interaction logic for winItemsControl.xaml
  /// </summary>
  public partial class WinItemsControl : Window
  {
    private WinItemsControlViewModel _datacontext;

    public WinItemsControl()
    {
      InitializeComponent();
      _datacontext = new WinItemsControlViewModel();
      DataContext = _datacontext;
      
      Messenger.Default.Register<string>(this, a =>
      {
        var tmp = a;
      });
    }
  }
}
